﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class StatisticsService
    {
        private readonly StatisticsController _statisticsController = new StatisticsController();

        #region [Statistics_GetByAll]

        public DataTable Statistics_GetByAll()
        {
            return _statisticsController.Statistics_GetByAll();
        }

        #endregion

        #region [Statistics_Insert]

        public void Statistic_Insert(StatisticsInfo statistics)
        {
            _statisticsController.Statistic_Insert(statistics);
        }

        #endregion

        #region [Statistics_GetView]

        public int Statistics_GetView(int userId, int distributionId)
        {
            return _statisticsController.Statistics_GetView(userId, distributionId);
        }

        #endregion

        #region [Statistics_UpdateView]

        public void Statistics_UpdateView(StatisticsInfo statistics)
        {
            _statisticsController.Statistics_UpdateView(statistics);
        }

        #endregion
    }
}